Skip to content

[3.11] gh-149776: Skip UDP Lite tests if it's not supported (#149777)#153593

Open
vstinner wants to merge 1 commit into
python:3.11from
vstinner:udplite11
Open

[3.11] gh-149776: Skip UDP Lite tests if it's not supported (#149777)#153593
vstinner wants to merge 1 commit into
python:3.11from
vstinner:udplite11

Conversation

@vstinner

@vstinner vstinner commented Jul 11, 2026

Copy link
Copy Markdown
Member

Fix test_socket on Linux kernel 7.1 and newer: skip UDP Lite tests if it's not supported.

(cherry picked from commit 3cfc249)

…9777)

Fix test_socket on Linux kernel 7.1 and newer: skip UDP Lite tests if
it's not supported.

(cherry picked from commit 3cfc249)
@vstinner

Copy link
Copy Markdown
Member Author

The Linux kernel of the "AMD64 Fedora Stable" buildbot was upgraded from 7.0 to 7.1, 3 days ago, so test_socket started to fail. The Linux kernel 7.1 removes the UDP Lite support. This PR backports a fix from the main branch.

@vstinner

Copy link
Copy Markdown
Member Author

cc @hugovk

@vstinner

Copy link
Copy Markdown
Member Author

macOS / build and test (macos-15-intel): test_ssl fails because it lacks the fix gh-153311 (ssl fix backport).

======================================================================
ERROR: test_load_verify_cadata (test.test_ssl.ContextTests.test_load_verify_cadata)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/cpython/cpython/Lib/test/test_ssl.py", line 1535, in test_load_verify_cadata
    ctx.load_verify_locations(cadata=cacert_der)
ssl.SSLError: [ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4057)

======================================================================
ERROR: test_connect_cadata (test.test_ssl.SimpleBackgroundTests.test_connect_cadata)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/cpython/cpython/Lib/test/test_ssl.py", line 2181, in test_connect_cadata
    ctx.load_verify_locations(cadata=der)
ssl.SSLError: [ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4057)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants